home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmC3_104_Window < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.1 KB  |  38 lines

  1. // %filename% -- window
  2. // Created %date% %time% by AppMaker
  3.  
  4. //    For most applications, your window will have custom view classes.
  5. //    This module provides a convenient place to put these classes.
  6. //    If you specify a custom classname for any view item, AppMaker will
  7. //    generate some skeleton code for that custom class.  It generates
  8. //    a declaration of that class with a fields method; it generates
  9. //    the body of the fields method; and AppMaker generates code for
  10. //    dead strip suppression.  For some view items, AppMaker generates
  11. //    other methods it knows you will need; for instance, for a
  12. //    TTextListView, AppMaker generates a GetItemText method.
  13.  
  14. #include "U%windname%.h"
  15.  
  16. #ifndef __UVIEWSERVER__
  17. #include <UViewServer.h>
  18. #endif
  19.  
  20. #include "ResourceDefs.h"
  21.  
  22. %for each item gen classMethods%
  23. #pragma segment AOpen
  24. //----------
  25. TWindow     *New%windname%        (TDocument        *itsDocument)
  26. {
  27.     TWindow            *theWindow;
  28.  
  29.     theWindow = gViewServer->NewTemplateWindow (k%windname%ID, itsDocument);
  30.     FailNIL (theWindow);
  31.  
  32.     %for each item gen gDeadStripSuppression%
  33.  
  34.     return (theWindow);
  35. } /* New%windname% */
  36.  
  37. /* U%windname% */
  38.